package com.platform.qujia.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.core.enums.IEnum;

/**
 * @date 2023/11/20
 */
public enum BatchTaskStatus implements IEnum<Integer> {
    NOT_STARTED(0),
    IN_QUEUE(1),
    RUNNING(2),
    SUCCESS(3),
    FAIL(4),
    ;

    private final int code;

    BatchTaskStatus(int code) {
        this.code = code;
    }

    @Override
    public Integer getValue() {
        return this.code;
    }

    public int getCode() {
        return code;
    }
}
